package com.xuanwei.web.controller;

import com.xuanwei.core.response.ResultVO;
import com.xuanwei.core.service.IXwHotWordService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author jiangyong
 * @Description TODO
 * @Date 2019/8/7 16:57
 **/
@RestController
@RequestMapping("/wx/hotWord")
public class HotWordController extends BasicController {

    private IXwHotWordService hotWordService;

    public HotWordController(IXwHotWordService hotWordService) {
        this.hotWordService = hotWordService;
    }

    @RequestMapping(value = "list", method = RequestMethod.GET)
    public ResultVO list() {
        return ResultVO.successResult(hotWordService.findAll());
    }
}
